package com.fyp.ptma.controllers;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.fyp.ptma.model.Downloader;

/**
 * 
 * @author yahya
 * 
 */
@XmlRootElement(name = "response")
public class Response {

	public static final int GETTING_APPLICATIONS = 3;
	public static final int NOT_LOGGEDIN = 4;
	public static final int NOT_REGISTERED = 5;
	public static final int OK = 6;

	private int statusCode;

	private Downloader responseBody;

	@XmlElement
	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	@XmlElement(name = "body")
	public Downloader getResponseBody() {
		return responseBody;
	}

	public void setResponseBody(Downloader responseBody) {
		this.responseBody = responseBody;
	}

}
